package br.ufrn.sigtcc.util.exceptions;

import java.util.List;

public class BusinessException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	List<String> mensagensErro;

	public void addMessage(String message){
		this.mensagensErro.add(message);
	}
	
	public List<String> getErrorMessages(){
		return this.mensagensErro;
	}
	
	public void setErrorMessages(List<String> msgs){
		this.mensagensErro = msgs;
	}

}
